.class Lrexsee/core/progress/RexseeProgressDialog$1;
.super Ljava/lang/Object;
.source "RexseeProgressDialog.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lrexsee/core/progress/RexseeProgressDialog;->showWithRunnable(Ljava/lang/String;Ljava/lang/Runnable;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lrexsee/core/progress/RexseeProgressDialog;

.field private final synthetic val$cancelRunnable:Ljava/lang/Runnable;

.field private final synthetic val$message:Ljava/lang/String;


# direct methods
.method constructor <init>(Lrexsee/core/progress/RexseeProgressDialog;Ljava/lang/String;Ljava/lang/Runnable;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lrexsee/core/progress/RexseeProgressDialog$1;->this$0:Lrexsee/core/progress/RexseeProgressDialog;

    iput-object p2, p0, Lrexsee/core/progress/RexseeProgressDialog$1;->val$message:Ljava/lang/String;

    iput-object p3, p0, Lrexsee/core/progress/RexseeProgressDialog$1;->val$cancelRunnable:Ljava/lang/Runnable;

    .line 41
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 4

    .prologue
    const/4 v3, 0x0

    .line 44
    iget-object v0, p0, Lrexsee/core/progress/RexseeProgressDialog$1;->this$0:Lrexsee/core/progress/RexseeProgressDialog;

    # getter for: Lrexsee/core/progress/RexseeProgressDialog;->mProgressDialog:Landroid/app/ProgressDialog;
    invoke-static {v0}, Lrexsee/core/progress/RexseeProgressDialog;->access$0(Lrexsee/core/progress/RexseeProgressDialog;)Landroid/app/ProgressDialog;

    move-result-object v0

    if-nez v0, :cond_0

    .line 45
    iget-object v0, p0, Lrexsee/core/progress/RexseeProgressDialog$1;->this$0:Lrexsee/core/progress/RexseeProgressDialog;

    new-instance v1, Landroid/app/ProgressDialog;

    iget-object v2, p0, Lrexsee/core/progress/RexseeProgressDialog$1;->this$0:Lrexsee/core/progress/RexseeProgressDialog;

    # getter for: Lrexsee/core/progress/RexseeProgressDialog;->mContext:Landroid/content/Context;
    invoke-static {v2}, Lrexsee/core/progress/RexseeProgressDialog;->access$1(Lrexsee/core/progress/RexseeProgressDialog;)Landroid/content/Context;

    move-result-object v2

    invoke-direct {v1, v2}, Landroid/app/ProgressDialog;-><init>(Landroid/content/Context;)V

    invoke-static {v0, v1}, Lrexsee/core/progress/RexseeProgressDialog;->access$2(Lrexsee/core/progress/RexseeProgressDialog;Landroid/app/ProgressDialog;)V

    .line 46
    iget-object v0, p0, Lrexsee/core/progress/RexseeProgressDialog$1;->this$0:Lrexsee/core/progress/RexseeProgressDialog;

    # getter for: Lrexsee/core/progress/RexseeProgressDialog;->mProgressDialog:Landroid/app/ProgressDialog;
    invoke-static {v0}, Lrexsee/core/progress/RexseeProgressDialog;->access$0(Lrexsee/core/progress/RexseeProgressDialog;)Landroid/app/ProgressDialog;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/app/ProgressDialog;->setProgressStyle(I)V

    .line 47
    iget-object v0, p0, Lrexsee/core/progress/RexseeProgressDialog$1;->this$0:Lrexsee/core/progress/RexseeProgressDialog;

    # getter for: Lrexsee/core/progress/RexseeProgressDialog;->mProgressDialog:Landroid/app/ProgressDialog;
    invoke-static {v0}, Lrexsee/core/progress/RexseeProgressDialog;->access$0(Lrexsee/core/progress/RexseeProgressDialog;)Landroid/app/ProgressDialog;

    move-result-object v0

    new-instance v1, Lrexsee/core/progress/RexseeProgressDialog$1$1;

    invoke-direct {v1, p0}, Lrexsee/core/progress/RexseeProgressDialog$1$1;-><init>(Lrexsee/core/progress/RexseeProgressDialog$1;)V

    invoke-virtual {v0, v1}, Landroid/app/ProgressDialog;->setOnKeyListener(Landroid/content/DialogInterface$OnKeyListener;)V

    .line 55
    :cond_0
    iget-object v0, p0, Lrexsee/core/progress/RexseeProgressDialog$1;->this$0:Lrexsee/core/progress/RexseeProgressDialog;

    # getter for: Lrexsee/core/progress/RexseeProgressDialog;->mProgressDialog:Landroid/app/ProgressDialog;
    invoke-static {v0}, Lrexsee/core/progress/RexseeProgressDialog;->access$0(Lrexsee/core/progress/RexseeProgressDialog;)Landroid/app/ProgressDialog;

    move-result-object v0

    iget-object v1, p0, Lrexsee/core/progress/RexseeProgressDialog$1;->val$message:Ljava/lang/String;

    invoke-static {v1}, Landroid/text/Html;->fromHtml(Ljava/lang/String;)Landroid/text/Spanned;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/app/ProgressDialog;->setMessage(Ljava/lang/CharSequence;)V

    .line 56
    iget-object v0, p0, Lrexsee/core/progress/RexseeProgressDialog$1;->val$cancelRunnable:Ljava/lang/Runnable;

    if-nez v0, :cond_1

    .line 57
    iget-object v0, p0, Lrexsee/core/progress/RexseeProgressDialog$1;->this$0:Lrexsee/core/progress/RexseeProgressDialog;

    # getter for: Lrexsee/core/progress/RexseeProgressDialog;->mProgressDialog:Landroid/app/ProgressDialog;
    invoke-static {v0}, Lrexsee/core/progress/RexseeProgressDialog;->access$0(Lrexsee/core/progress/RexseeProgressDialog;)Landroid/app/ProgressDialog;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/app/ProgressDialog;->setCancelable(Z)V

    .line 68
    :goto_0
    iget-object v0, p0, Lrexsee/core/progress/RexseeProgressDialog$1;->this$0:Lrexsee/core/progress/RexseeProgressDialog;

    # getter for: Lrexsee/core/progress/RexseeProgressDialog;->mProgressDialog:Landroid/app/ProgressDialog;
    invoke-static {v0}, Lrexsee/core/progress/RexseeProgressDialog;->access$0(Lrexsee/core/progress/RexseeProgressDialog;)Landroid/app/ProgressDialog;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/ProgressDialog;->show()V

    .line 69
    return-void

    .line 59
    :cond_1
    iget-object v0, p0, Lrexsee/core/progress/RexseeProgressDialog$1;->this$0:Lrexsee/core/progress/RexseeProgressDialog;

    # getter for: Lrexsee/core/progress/RexseeProgressDialog;->mProgressDialog:Landroid/app/ProgressDialog;
    invoke-static {v0}, Lrexsee/core/progress/RexseeProgressDialog;->access$0(Lrexsee/core/progress/RexseeProgressDialog;)Landroid/app/ProgressDialog;

    move-result-object v0

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/app/ProgressDialog;->setCancelable(Z)V

    .line 60
    iget-object v0, p0, Lrexsee/core/progress/RexseeProgressDialog$1;->this$0:Lrexsee/core/progress/RexseeProgressDialog;

    # getter for: Lrexsee/core/progress/RexseeProgressDialog;->mProgressDialog:Landroid/app/ProgressDialog;
    invoke-static {v0}, Lrexsee/core/progress/RexseeProgressDialog;->access$0(Lrexsee/core/progress/RexseeProgressDialog;)Landroid/app/ProgressDialog;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/app/ProgressDialog;->setCanceledOnTouchOutside(Z)V

    .line 61
    iget-object v0, p0, Lrexsee/core/progress/RexseeProgressDialog$1;->this$0:Lrexsee/core/progress/RexseeProgressDialog;

    # getter for: Lrexsee/core/progress/RexseeProgressDialog;->mProgressDialog:Landroid/app/ProgressDialog;
    invoke-static {v0}, Lrexsee/core/progress/RexseeProgressDialog;->access$0(Lrexsee/core/progress/RexseeProgressDialog;)Landroid/app/ProgressDialog;

    move-result-object v0

    new-instance v1, Lrexsee/core/progress/RexseeProgressDialog$1$2;

    iget-object v2, p0, Lrexsee/core/progress/RexseeProgressDialog$1;->val$cancelRunnable:Ljava/lang/Runnable;

    invoke-direct {v1, p0, v2}, Lrexsee/core/progress/RexseeProgressDialog$1$2;-><init>(Lrexsee/core/progress/RexseeProgressDialog$1;Ljava/lang/Runnable;)V

    invoke-virtual {v0, v1}, Landroid/app/ProgressDialog;->setOnCancelListener(Landroid/content/DialogInterface$OnCancelListener;)V

    goto :goto_0
.end method
